package com.heima.service;

import com.heima.dto.ActivitiesDto;
import com.heima.dto.ActivitiesPageDto;
import com.heima.pojo.Activities;
import com.heima.result.PageResult;

public interface ActivityService {

    /**
     * 新增活动
     * @param activitiesDto
     */
    void insertActivity(ActivitiesDto activitiesDto);

    /**
     * 活动查询
     * @param activitiesPageDto
     * @return
     */
    PageResult queryActivitiesList(ActivitiesPageDto activitiesPageDto);

    /**
     * 修改界面信息回显
     * @param id
     * @return
     */
    Activities getActivitiesInfo(Integer id);

    /**
     * 修改活动
     * @param activities
     */
    void updateActivities(Activities activities);

    /**
     * 删除活动
     * @param id
     */
    void deleteActivities(Integer id);
}
